package com.jd.controller;

import com.jd.pojo.User;
import com.jd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService;
    public void AddUser(){

        User user=new User();
        user.setId(1001);
        user.setName("小七");
        user.setSex("男");
    userService.AddUser(user);
    }
}
